<div class="container">
    <% include common/left.html %>
    <div class="containerRight fr">
        <div class="productTit">
            <span><%= detail.name %></span>
            标的编号:<%= detail.id %>
        </div>
        <div class="productList">
            <div class="productListTop">
                <ul>
                    <li class="on">
                        <span>年化利率</span>

                        <p><font><%= detail.apr %>%</font>
                            <% if(detail.extraAwardApr == 0){%>
                        </p>
                        <% }else{%>
                            +<%= detail.extraAwardApr %>%</p>
                        <%}%>
                    </li>
                    <li>
                        <span>借款期限</span>
                        <p><font><%= detail.timeLimitDay %></font>天</p>
                    </li>
                    <li>
                        <span>起投金额(元)</span>
                        <p><font><%= detail.lowestAccount.toFixed(2) %></font></p>
                    </li>
                    <li>
                        <span>借款金额(元)</span>
                        <p><font><%= detail.account.toFixed(2) %></font></p>
                    </li>
                </ul>
            </div>
            <div class="productListDetail">
                <ul>
                    <li><span>发标时间：</span><%= detail.secVerifyTime %></li>
                    <li><span>募集金额：</span><%= detail.account.toFixed(2) %> 元</li>
                    <li><span>最低募集金额：</span><%= detail.minInvestAmount.toFixed(2) %> 元</li>
                </ul>
                <ul>
                    <li><span>募集周期：</span><%= detail.validTime %>天</li>
                    <li><span>募集开始时间：</span><%= detail.publishTime %></li>
                    <li><span>募集结束时间：</span><%= detail.fullTime %></li>
                </ul>
                <ul>
                    <li><span>上架时间：</span><%= detail.addTime %></li>
                    <li><span>最高投资限额：</span><%= detail.mostAccount.toFixed(2) %> 元</li>
                    <% if(detail.interestType==0){ %>
                        <li><span>计息方式：</span>投资当日计息</li>
                    <% }else{ %>
                        <li><span>计息方式：</span>募集满额次日计息</li>
                    <% } %>
                </ul>
                <ul>
                    <li><span>计息开始时间：</span><%= detail.interestStartTime %></li>
                    <li><span>计息结束时间：</span><%= detail.interestEndTime %></li>
                    <% if(detail.style==1){ %>
                        <li><span>回款方式：</span>等额本息</li>
                    <% }else if(detail.style==2){ %>
                        <li><span>回款方式：</span>到期一次性还本付息</li>
                    <% }else{ %>
                        <li><span>回款方式：</span>每月还息到期还本</li>
                    <% } %>
                </ul>
                <ul>
                    <li><span>回款时间：</span><%= detail.paybackTime %></li>
                    <li><span>单笔最高金额：</span><%= detail.perDealMost.toFixed(2) %> 元</li>
                    <li><span>标的状态：</span><%= detail.statusNmae %></li>
                </ul>
                <ul>
                    <% if(detail.countdownFlag==0){ %>
                        <li><span>是否倒计时标记：</span>否</li>
                    <% }else{ %>
                        <li><span>是否倒计时标记：</span>是</li>
                    <% } %>
                    <% if(detail.isNewhand==0){ %>
                        <li><span>是否新手专享：</span>否</li>
                    <% }else{ %>
                        <li><span>是否新手专享：</span>是</li>
                    <% } %>
                    <% if(detail.isAdvanceRepay==0){ %>
                        <li><span>是否支持提前还款：</span>否</li>
                    <% }else{ %>
                        <li><span>是否支持提前还款：</span>是</li>
                    <% } %>
                </ul>
                <ul>
                    <li><span>服务费率：</span><%= detail.fees %> %</li>
                    <li><span>标的分类：</span><%= detail.categoryName %></li>
                    <% if(detail.borrowType==0){ %>
                        <li><span>标的类型：</span>周期性产品</li>
                    <% }else{ %>
                        <li><span>标的类型：</span>不定期出账产品</li>
                    <% } %>
                </ul>
                <ul>
                    <li><span>支持卡券类型：</span>
                        <% for(i = 0;i < detail.supportCardType.replace(/[\ |\'|\,|\<|\.|\>|\/|\?]/g,"").length; i++){ %>
                            <% if(detail.supportCardType[i]==0){ %>
                                不支持卡券,
                            <% }else if(detail.supportCardType[i]==1){ %>
                                体验金,
                            <% }else if(detail.supportCardType[i]==2){ %>
                                抵价券,
                            <% }else{ %>
                                加息券
                            <% } %>
                        <% } %>
                    </li>
                    <li><span>递增额度：</span><%= detail.incrQuota %></li>
                    <% if(detail.goTop==0){ %>
                        <li><span>标的手动置顶：</span>否</li>
                    <% }else{ %>
                        <li><span>标的手动置顶：</span>是</li>
                    <% } %>
                </ul>
                <ul>
                    <% if(!detail.isOpen){ %>
                        <li><span>标的是否开户：</span>否</li>
                    <% }else{ %>
                        <li><span>标的是否开户：</span>是</li>
                    <% } %>
                    <li><span>标的账户编号：</span><%= detail.prodAccount %></li>
                    <li><span>开户完成时间：</span><%= detail.openTime %></li>
                </ul>
                <ul>
                    <li><span>限购次数：</span><%= detail.buyLimit %></li>
                    <li><span>发标人员编号：</span><%= detail.verifyUser %></li>
                    <li><span>初审人员编号：</span><%= detail.verifyUser %></li>
                </ul>
                <ul>
                    <li><span>初审时间：</span><%= detail.verifyTime %></li>
                    <li><span>终审时间：</span><%= detail.secVerifyTime %></li>
                    <li><span>终审人员编号：</span><%= detail.secVerifyUser %></li>
                </ul>
                <ul>
                    <li style="width: 100%;"><span>初审备注：</span><%= detail.verifyRemark %></li>
                </ul>
                <ul>
                    <li style="width: 100%;"><span>终审备注：</span><%= detail.secVerifyRemark %></li>
                </ul>
                <ul>
                    <li><span>借款人编号：</span><%= detail.userId %></li>
                </ul>
            </div>
        </div>

        <div class="productTitle">
            <h3>产品详情</h3>
            <ul>
                <li><span>借款人：</span><p><%= name %></p></li>
                <% if(detail.type == 112){%>
                <li><span>资产分类：</span><p>债券</p></li>
                <%}else if(detail.type == 102){%>
                <li><span>资产分类：</span><p>借款</p></li>
                <% }else{%>
                <li><span>资产分类：</span><p></p></li>
                <% }%>
                <li><span>借款用途：</span><p><%= detail.useName %></p></li>
                <li><span>担保公司：</span><p><%= detail.company %></p></li>
                <% if(detail.riskGrade == 1){ %>
                    <li><span>风险评估等级：</span><p class="colorr">A</p></li>
                <%}else if(detail.riskGrade ==2){%>
                    <li><span>风险评估等级：</span><p class="colorr">AA</p></li>
                <%}else if(detail.riskGrade == 3){%>
                    <li><span>风险评估等级：</span><p class="colorr">AAA</p></li>
                <%}else if(detail.riskGrade == 4){%>
                    <li><span>风险评估等级：</span><p class="colorr">AAAA</p></li>
                <%}else if(detail.riskGrade == 5){%>
                    <li><span>风险评估等级：</span><p class="colorr">AAAAA</p></li>
                <%}else{%>
                    <li><span>风险评估等级：</span><p class="colorr"></p></li>
                <% }%>
            </ul>
        </div>
        <div class="detailTit">项目描述</div>
        <div class="detailBox">
            <%- detail.content %>
        </div>
        <div class="detailTit">还款来源</div>
        <div class="detailBox">
            <%- detail.repaymentSource %>
        </div>
        <div class="detailTit">资金用途</div>
        <div class="detailBox">
            <%- detail.fundUsage %>
        </div>
        <div class="detailTit">借款人资料</div>
        <div class="detailListImg">
            <div class="detailListImgBox">
                <ul>
                    <% if(borrowerInfo.length != 0){ %>
                        <% borrowerInfo.forEach(function(item,index){ %>
                            <li><img src="<%= item.fileUrl %>"></li>
                        <% }) %>
                    <% } %>
                </ul>
            </div>
            <div class="goLeft buttonSlider"><span class="glyphicon glyphicon-menu-left"></span></div>
            <div class="goRight buttonSlider"><span class="glyphicon glyphicon-menu-right"></span></div>
        </div>
    </div>
</div>
<script src="../../public/js/jquery.min.js"></script>
<script src="../../public/js/nav.js"></script>
<script src="../../public/js/slide.js"></script>